<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.css" />
    <style>
        .my-iframe .fancybox__content {
            width: 400px;
            height: 300px;
        }
    </style>
</head>

<body>
    <div>
        <p>
            <a href="index.php" data-fancybox data-type="iframe">Defaults</a>
        </p>
        <p>
            <a href="https://fancyapps.com/iframe.html" data-fancybox data-type="iframe" data-preload="false">
                Preloading is disabled
            </a>
        </p>
        <p>
            <a href="data:text/html,<p>Some HTML</p>" data-fancybox data-type="iframe">
                Dynamic iframe content
            </a>
        </p>
        <p>
            <a href="https://fancyapps.com/iframe.html" data-fancybox data-type="iframe" data-width="300"
                data-height="400">
                Custom width and height using data attributes
            </a>
        </p>
        <p>
            <a href="https://fancyapps.com/iframe.html" data-fancybox data-type="iframe" data-custom-class="my-iframe">
                Custom width and height using CSS
            </a>
        </p>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.umd.js"></script>
    <script>
        Fancybox.bind("[data-fancybox]", {
            //
        })
    </script>
</body>

</html>
